<?php
class Contact_model extends Model
{
	function __construct()
	{
		parent::Model();	
	}	
	function get_contact()
	{
		$this->db->where('bl_active',1);
		return $this->db->get('xn_contact')->row();
	}	
	function get_all_contact($num,$offset)
	{		
		return $this->db->get('xn_contact',$num,$offset)	->result();
	}
	function get_num_contact()
	{
		$this->db->where('bl_active',1)	;
		return $this->db->get('xn_contact')->num_rows();
	}
}
?>